<style>
    /*首页导航下样式*/
    .bg-green{
        background: rgba(98,203,49,0.8);
        height:200px;
        overflow: hidden;
    }
    .main-section{
        width: 20%;
        height: 155px;
        border-right: 1px solid #fff;
        margin-top: 24px;
        float: left;
        font-size: 12px;
        color: #fff;
        font-weight: bold;
    }
    .main-section a{
        color: #fff;
    }
    .main-section:last-child{
        border: none;
    }
    .media-body>.row>.col-md-2{
        padding:0;
    }
    .media-body>.row>.col-md-4 {
        padding: 0;
    }
    .fa.pull-left{
        margin-right: 0.5em;
    }
    .lsosceles_trapezoid{
        content: "";
        display: block;
        width: 14px;
        height: 0px;
        border-width: 0px 8px 12px;
        border-style: none solid solid;
        border-color: transparent transparent #62cb31;
        cursor: pointer;
        position: absolute;
        left: 50%;
    }
    .panel-style{
        position: absolute;
        z-index:9;
        padding-top: 0;
    }
    .warningImage{
        width: 44px;
        height: 44px;
        line-height: 44px;
        border-radius: 100%;
        text-align: center;
        font-weight: bold;
        font-size: 14px;
        border: 1px solid #62CB31;
        color: #62cb31;
        /*display: none;*/
        float: right;
        margin-right: 20px;
        cursor: pointer;
        background: #fff;
    }
    .media-left, .media>.pull-left{
        margin-right: 10px;
    }
    /*07-19css*/
    #right-sidebar{
        top: 56px;
    }
    .social-talk{
        margin-bottom: 52px;
    }
    .iconImage{
        position: relative;
        top: -7px;
    }
    .media, .media-body{
        overflow: inherit;
    }

</style>

<div id="right-sidebar" class="animated fadeInRight">

    <div class="p-m">
        <button id="sidebar-close" class="right-sidebar-toggle sidebar-button btn btn-default m-b-md darkStyle"><i class="pe pe-7s-close"></i>
        </button>
        <div class="m-t-md">
            <div class="social-talk">
                <div class="media social-profile clearfix">
                    <i class="fa fa-user-circle fa-2x img-circle m-b pull-left iconImage" aria-hidden="true"></i>

                    <div class="media-body">
                        <div class="form-group">
                            <g:link controller="estate" action="estatePendingIndex">待审批</g:link>
                            <div class="pull-right text-success"><span class="estatePendingCount"></span>条</div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="social-talk">
                <div class="media social-profile clearfix">
                    <i class="fa pe-7s-graph3 fa-2x img-circle m-b pull-left iconImage" aria-hidden="true"></i>

                    <div class="media-body">
                        <div class="form-group">
                            <a id="priceFluctuationsRatioCount" onclick="riskWarningMap(1)"><span class="asideClick">价值波动预警</span></a>
                            <g:link controller="riskWarning" action="priceFluctuationsRatioWarning"><div class="pull-right text-success"><span class="priceFluctuationsRatioCount"></span>条</div></g:link>
                        </div>
                        <div class="form-group">
                            <a id="concentrationCount" onclick="riskWarningMap(7)"><span class="asideClick">集中度预警</span></a>
                            <g:link controller="riskWarning" action="concentrationWarning"><div class="pull-right text-success"><span class="concentrationCount"></span>条</div></g:link>
                        </div>
                        <div class="form-group">
                            <a id="buildingScoreCount" onclick="riskWarningMap(15)"><span class="asideClick">楼盘风险预警</span></a>
                            <g:link controller="riskWarning" action="buildingScoreWarning"><div class="pull-right text-success"><span class="buildingScoreCount"></span>条</div></g:link>
                        </div>
                        <div class="form-group">
                            <a id="collateralCoverageRateCount" onclick="riskWarningMap(10)"><span class="asideClick">押品覆盖率预警</span></a>
                            <g:link controller="riskWarning" action="collateralCoverageRateWarning"><div class="pull-right text-success"><span class="collateralCoverageRateCount"></span>条</div></g:link>
                        </div>
                        <div class="form-group">
                            <a id="effectiveMaturityCount" onclick="riskWarningMap(14)"><span class="asideClick">押品效期到期监测</span></a>
                            <g:link controller="riskWarning" action="effectiveMaturityWarning"><div class="pull-right text-success"><span class="effectiveMaturityCount"></span>条</div></g:link>
                        </div>
                    </div>
                </div>
            </div>
            <div class="social-talk">
                <div class="media social-profile clearfix">
                    <i class="fa pe-7s-display1 fa-2x img-circle m-b pull-left iconImage" aria-hidden="true"></i>


                    <div class="media-body">

                        <div class="form-group">
                            <g:link controller="riskWarning" action="contactRiskWarning">借款人风控预警</g:link>
                            <div class="pull-right text-success"> <span class="contactWarningCount"></span>条</div>
                        </div>

                        <div class="form-group">
                            <g:link controller="riskWarning" action="contactOverdueWarning">借款人逾期/违约预警</g:link>
                            <div class="pull-right text-success"> 8条</div>
                        </div>

                        <div class="form-group">
                            <g:link controller="riskWarning" action="contactRelationsWarning">人员关系预警</g:link>
                            <div class="pull-right text-success"> 8条</div>
                        </div>

                        <div class="form-group">
                            <g:link controller="riskWarning" action="accountOverdueWarning">借款公司逾期/违约预警</g:link>
                            <div class="pull-right text-success"> 3条</div>
                        </div>

                        <div class="form-group">
                            <g:link controller="riskWarning" action="antiFraudWarning">欺诈预警</g:link>
                            <div class="pull-right text-success"><span class="antiFraudCount"></span>条</div>
                        </div>

                        <div class="form-group">
                            <g:link controller="riskWarning" action="contactCreditLevelWarning">个人信用等级预警</g:link>
                            <div class="pull-right text-success"> 5条</div>
                        </div>

                        <div class="form-group">
                            <g:link controller="riskWarning" action="accountCreditLevelWarning">公司信用等级预警</g:link>
                            <div class="pull-right text-success"> 4条</div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <div class="social-talk">
            <div class="media clearfix">
                <i class="fa pe-7s-bell fa-2x img-circle m-b pull-left iconImage" aria-hidden="true"></i>
                %{--<asset:image src="indexWarning.png" style="width: 30px;margin-right: 10px;padding-right: 0;" class="img-circle m-b pull-left iconImage" />--}%

                <div class="media-body">
                    <div class="form-group">
                        <g:link controller="riskWarning" action="publicOpinionWarning">舆情预警</g:link>
                        <div class="pull-right text-success">3条</div>
                    </div>
                    <div class="form-group">
                        <a href="/riskWarning/publicOpinionShow?id=1">安徽省庆阳秋田木业42.5%股权转让预公告</a>
                    </div>
                    <div class="form-group">
                        <a href="/riskWarning/publicOpinionShow?id=2">广州市天河小河突发火灾</a>
                    </div>
                    <div class="form-group">
                        <a href="/riskWarning/publicOpinionShow?id=3">杭州上塘路文汇路同盛嘉园发生火灾</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<script>
    function riskWarningMap(warningType){
        var url = window.location.href;
        if(url.indexOf("/main/heatIndex")!=-1)
        {
            var inputData = getInputData('heatMap');
            inputData.warningType = warningType;
            heatmap.inputData = inputData;
            var map = xdmap.mapInit('allmap', 4, [12122301.189802673,4070118.8821290657]);
            heatmap.map.getView().setMaxZoom(18);
            heatmap.map.getView().setMinZoom(4);
            heatmap.map.getView().setZoom(5);
            heatmap.map.getView().setCenter([12122301.189802673,4070118.8821290657]);
            heatmap.reset(inputData);
        }else(
            window.location.href="/main/heatIndex?currentMap=heatMap&warningType="+warningType
        )
    }
    $(".asideClick").click(function(){
        $(this).addClass('text-success').parent().parent().siblings().children().children('.asideClick').removeClass("text-success");
    })
</script>